# isdigit只识别阿拉伯数字 0123456789
print('123'.isdigit()) # True
print('0b1010'.isdigit()) # False
print('一二三'.isdigit()) # False
print('ⅠⅡⅢ'.isdigit()) # False

# isnumeric
print('123'.isnumeric()) # True
print('0b1010'.isnumeric()) # False
print('一二三'.isnumeric()) # True
print('ⅠⅡⅢ'.isnumeric()) # True
print('壹贰叁'.isnumeric()) # True

# isalpha所有字符都是字母（包含中文字符）
print('hello你好'.isalpha()) # True
print('hello你好123'.isalpha()) # False
print('hello你好一二三'.isalpha()) # True
print('hello你好ⅠⅡⅢ'.isalpha()) # False
print('hello你好壹贰叁'.isalpha()) # True

# isalnum
print('hello你好'.isalnum()) # True
print('hello你好123'.isalnum()) # True
print('hello你好一二三'.isalnum()) # True
print('hello你好ⅠⅡⅢ'.isalnum()) # True
print('hello你好壹贰叁'.isalnum()) # True

# 判断大小写
print('helloworld'.islower()) # True
print('HELLOWORLD'.isupper()) # True

# 所有字符都是首字母大写
print('Helloworld'.istitle()) # True
print('HelloWorld'.istitle()) # False

# 判断空白字符
print(' \n\t'.isspace()) # True